package com.junchao.peng.mapper;

import com.junchao.peng.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @author dell
 */
@Mapper
public interface UserMapper {
    User selectUserByEmail(String email);

    User selectUserById(Integer id);

    List<User> listUser();

    boolean insertUser(String email, String name, String phone, Date time);

    boolean updateUser(User user);

    boolean deleteUser(Integer userId);
}
